package fr.univ.colloque.servlet;

import fr.univ.colloque.data.Expose;
import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

public class AnnulerChoixEval extends HttpServlet
{

    @Override
    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
    {
        HttpSession session = req.getSession();

        Expose e = (Expose) session.getAttribute("expose");
        session.removeAttribute("lPers");
        session.removeAttribute("expose");

        // on redirige vers la liste maj des eval de l expo 
        resp.sendRedirect("ListeComiteColloque?id=" + e.getColloc().getId());
    }
}
